<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>定位</title>
		<style>
			*{
				margin:0;
				padding:0;
			}
			.box{
				width:200px;
				height:200px;
				background-color:pink;
				/*相对定位*/
				position: relative;
				/*绝对定位*/
				position:absolute;
				/*left:左  right:右   top:上  bottom:下*/
				/*left:100px;*/
				/*bottom:-100px;*/
				bottom:0px;
				right:0px;
			}
			.box1{
				width:200px;
				height:200px;
				background-color:blue;
				position:absolute;
				left:0px;
				bottom:0px;
			}
		</style>
	</head>
	<body>
		<div class="box"></div>
		<div class="box1"></div>
		
	</body>
</html>
